package com.example.splash;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
/**
 * 
 * @author Dani
 * Java class for the child activity
 */
public class ChildActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_child);
		
		Button	btnVolver = (Button) findViewById(R.id.button1);
		btnVolver.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
	        	Intent intent = new Intent();
	        	intent.putExtra("someData", "killlllllllllll!");
	        	setResult(RESULT_OK,intent);
	        	finish();
	        }
	    }); 
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.child, menu);
		return true;
	}

}
